//
//  XingCheng3JiViewController.m
//  Trip
//
//  Created by dlios on 15-7-17.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "XingCheng3JiViewController.h"

@interface XingCheng3JiViewController ()

@end

@implementation XingCheng3JiViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 创建视图
    UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    // 设置webView上的scrollView边界预留
    [webView.scrollView setContentInset:UIEdgeInsetsMake(-44, 0, 0, 0)];
    // 边缘弹动效果
    [webView.scrollView setBounces:NO];
    // 加载请求
    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://ditu.google.cn/maps/api/js?key=AIzaSyCo77VeSvHv7Vkv0oseeZuRGqbwbPZOzQQ&sensor=true"]]];
    // 添加父视图
    [self.view addSubview:webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
